import App from './App'
import uView from 'uview-ui'
import cuCustom from './colorui/components/cu-custom.vue'
import cloudApi from './common/cloudApi.js'
import share from "@/mixin/share";
Vue.use(uView)
Vue.mixin(share)
uni.$u.config.unit = 'rpx'

Vue.prototype.$cloudApi = cloudApi


// #ifndef VUE3
import Vue from 'vue'
Vue.config.productionTip = false
Vue.component('cu-custom', cuCustom)
App.mpType = 'app'
const app = new Vue({
    ...App
})
app.$mount()
// #endif

// #ifdef VUE3
import { createSSRApp } from 'vue'
export function createApp() {
  const app = createSSRApp(App)
  return {
    app
  }
}
// #endif